]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
appMenu: Hide overview when activating apps
authorFlorian Müllner <fmuellner@gnome.org>
Wed, 11 Aug 2021 20:54:11 +0000 (22:54 +0200)
committerMarge Bot <marge-bot@gnome.org>
Mon, 16 Aug 2021 21:28:22 +0000 (21:28 +0000)
This is the expected behavior when activating a window or app. Until
now we could rely on the menu being hidden in the overview, but as
that is about to change, make sure the menu behaves as expected.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1948>

js/ui/appMenu.js

index 85c193bfe8ea2e83891805bcfa7eb9b92f14126f..3b757492e5de54cdf351ae9674a3525863f389fd 100644 (file)
@@ -39,6 +39,7 @@ var AppMenu = class AppMenu extends PopupMenu.PopupMenu {
 
         this._newWindowItem = this.addAction(_('New Window'), () => {
             this._app.open_new_window(-1);
+            Main.overview.hide();
         });
 
         this.addMenuItem(new PopupMenu.PopupSeparatorMenuItem());
@@ -126,6 +127,7 @@ var AppMenu = class AppMenu extends PopupMenu.PopupMenu {
             const label = appInfo.get_action_name(action);
             this._actionSection.addAction(label, event => {
                 this._app.launch_action(action, event.get_time(), -1);
+                Main.overview.hide();
             });
         });